BrowserDomain

class BrowserDomain : Domain

The Browser domain defines methods and events for browser managing.

Functions

cancelDownload
Link copied to clipboard
fun cancelDownload(input: CancelDownloadRequest): Single<RequestResponseFrame>
Cancel a download if in progress
close
Link copied to clipboard
fun close(): Single<RequestResponseFrame>
Close browser gracefully.
crash
Link copied to clipboard
fun crash(): Single<RequestResponseFrame>
Crashes browser on the main thread.
crashGpuProcess
Link copied to clipboard
fun crashGpuProcess(): Single<RequestResponseFrame>
Crashes GPU process.
description
Link copied to clipboard
fun description(): String
Returns domain description.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
executeBrowserCommand
Link copied to clipboard
fun executeBrowserCommand(input: ExecuteBrowserCommandRequest): Single<RequestResponseFrame>
Invoke custom browser commands used by telemetry.
getBrowserCommandLine
Link copied to clipboard
fun getBrowserCommandLine(): Single<GetBrowserCommandLineResponse>
Returns the command line switches for the browser process if, and only if --enable-automation is on the commandline.
getDependencies
Link copied to clipboard
open fun getDependencies(): List<Domain>
Returns domain dependencies.
getHistogram
Link copied to clipboard
fun getHistogram(input: GetHistogramRequest): Single<GetHistogramResponse>
Get a Chrome histogram by name.
getHistograms
Link copied to clipboard
fun getHistograms(input: GetHistogramsRequest): Single<GetHistogramsResponse>
Get Chrome histograms.
getVersion
Link copied to clipboard
fun getVersion(): Single<GetVersionResponse>
Returns version information.
getWindowBounds
Link copied to clipboard
fun getWindowBounds(input: GetWindowBoundsRequest): Single<GetWindowBoundsResponse>
Get position and size of the browser window.
getWindowForTarget
Link copied to clipboard
fun getWindowForTarget(input: GetWindowForTargetRequest): Single<GetWindowForTargetResponse>
Get the browser window that contains the devtools target.
grantPermissions
Link copied to clipboard
fun grantPermissions(input: GrantPermissionsRequest): Single<RequestResponseFrame>
Grant specific permissions to the given origin and reject all others.
name
Link copied to clipboard
fun name(): String
Returns domain name.
resetPermissions
Link copied to clipboard
fun resetPermissions(input: ResetPermissionsRequest): Single<RequestResponseFrame>
Reset all permission management for all origins.
setDockTile
Link copied to clipboard
fun setDockTile(input: SetDockTileRequest): Single<RequestResponseFrame>
Set dock tile details, platform-specific.
setDownloadBehavior
Link copied to clipboard
fun setDownloadBehavior(input: SetDownloadBehaviorRequest): Single<RequestResponseFrame>
Set the behavior when downloading a file.
setPermission
Link copied to clipboard
fun setPermission(input: SetPermissionRequest): Single<RequestResponseFrame>
Set permission settings for given origin.
setWindowBounds
Link copied to clipboard
fun setWindowBounds(input: SetWindowBoundsRequest): Single<RequestResponseFrame>
Set position and/or size of the browser window.

Sources

jvm source
Link copied to clipboard